How to reset admin password on debian

How have I reset my admin password on debian?

  1. Boot using debian netinst live USB, selecting “Rescue mode”.
  2. Select root partition when asked. /dev/sda6, for example. You should know this beforehand.
  3. Enter this command to set a new password: passwd username
  4. Reboot, login with new password.
  5. Enter this command to delete old keyring data: rm ~/.local/share/keyrings/login.keyring

Of course there are other ways to achieve this. I just wanted to share with you what I did.

Leave a Reply

Your email address will not be published. Required fields are marked *